package cn.appinfo.dao.appInfo;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.appinfo.pojo.AppInfo;

public interface AppInfoMapper {
	List<AppInfo> getAppInfoList(@Param("currentPageNo")int currentPageNo,@Param("size")int size,
			@Param("SoftwareName")String SoftwareName,@Param("FlatformId")int FlatformId,
			@Param("CategoryLevel1")int CategoryLevel1,@Param("CategoryLevel2")int CategoryLevel2,
			@Param("CategoryLevel3")int CategoryLevel3);
	int appInfoCount(@Param("SoftwareName")String SoftwareName,@Param("FlatformId")int FlatformId,
			@Param("CategoryLevel1")int CategoryLevel1,@Param("CategoryLevel2")int CategoryLevel2,
			@Param("CategoryLevel3")int CategoryLevel3);
	AppInfo getAppInfo(@Param("id")int id);
	void checksave(@Param("id")int id,@Param("status")String status);
	List<AppInfo> getAppInfoList2(@Param("from")int currentPageNo,@Param("pageSize")int size,
			@Param("softwareName")String SoftwareName,@Param("flatformId")int FlatformId,
			@Param("categoryLevel1")int CategoryLevel1,@Param("categoryLevel2")int CategoryLevel2,
			@Param("categoryLevel3")int CategoryLevel3,@Param("status")int status,
			@Param("devId")int devId);
	
	int appInfoCount2(@Param("softwareName")String SoftwareName,@Param("flatformId")int FlatformId,
			@Param("categoryLevel1")int CategoryLevel1,@Param("categoryLevel2")int CategoryLevel2,
			@Param("categoryLevel3")int CategoryLevel3,@Param("status")int status,
			@Param("devId")int devId);
	
	int add(AppInfo appinfo);
	
	String getAPKName(@Param("APKName")String APKName);
	
	void updateVersionId(@Param("appId")int appid);
	
	int updateLogo(@Param("id")String id);
	
	int modify(AppInfo appinfo);
	
	int delId(@Param("id")String id);
}
